function [ v ] = linevar( line )
%LINEVAR Summary of this function goes here
%  return the mean of level difference of the line as its variation rate

d = diff(double(line));

s = mean(d.*d);

v = sqrt(s);


